package main

import (
	"github.com/gin-gonic/gin"
	"log"
	"webTools/handler"
)

func main() {
	gin.SetMode(gin.ReleaseMode)
	r := gin.Default()
	r.Static("/ui", "static")
	r.GET("/api/htmlInfo", handler.GetHtmlInfoHandler)
	r.GET("/api/appInfo", handler.GetAppInfoHandler)
	log.Println("服务启动成功\n访问地址: http://127.0.0.1:8000/ui/")
	err := r.Run(":8000")
	if err != nil {
		panic(err)
	}

}
